    function numberUp(obj, number, val, limit, timer)
    {
    	if(number >= limit)
    	{
    		return;
    	}
    	setTimeout(function(){nUp(obj, number, val, limit, timer)}, timer);
    }
    
    function nUp(obj, number, val, limit, timer)
    {
    	if(number < limit)
    	{
    		number = number+val;
    		$(obj).html(number);
    	}
    	else
    	{
    		return;
    	}
    	setTimeout(function(){numberUp(obj, number, val, limit, timer)}, timer);
    }
    function ww_timer(timer, obj)
	{
		if(timer != '00:00:00')
		{
			ww_count_down(timer, obj);
		}
		else
		{
			window.location.reload();
		}
		return;
	}
	function ww_count_down(timer, obj)
	{
		var arr_timer = timer.split(":");
		var second = arr_timer[2];
		var minuter = arr_timer[1];
		var hour = arr_timer[0];
		if(second > 0)
		{
			second = second - 1;
			if(second< 10)
			{
				second = '0' + second;
			}
		}
		else if(second == 0 && minuter > 0)
		{
			minuter = minuter - 1;
			second = 59;
			if(minuter < 10)
			{
				minuter = '0' + minuter;
			}
		}
		else if(second == 0 && minuter == 0)
		{
			hour = hour - 1;
			minuter = 59;
			second = 59;
			if(hour < 10)
			{
				hour = '0' + hour;
			}
		}
		timer = hour+':'+minuter+':'+second;
		$('.' + obj).html(timer);
		setTimeout(function(){ww_timer(timer, obj)},1000);
		return;
	}
    function sChkAll(obj, divId, chkItemClass, hddId)
    {
        var strId = $.trim($(hddId).val());
        var arrId = new Array();
        if(strId != '')
        {
        	arrId = strId.split(',');
        }
        if($(obj).attr('checked'))
        {
        	var arr = $(divId + ' input.' + chkItemClass);
        	jQuery.each(arr, function(){
        		var id = $.trim($(this).val());
        		if(jQuery.inArray(id,arrId) == -1)
        		{
        			arrId.push(id);
        		}
        		$(this).attr('checked', 'checked');
        	});
        	$(hddId).val(arrId.join(','));
        }
        else
        {
        	var arr = $(divId + ' input.' + chkItemClass);
        	jQuery.each(arr, function(){
        		var id = $.trim($(this).val());
        		var index = jQuery.inArray(id,arrId);
        		if(index > -1)
        		{
        			arrId[index] = '';
        		}
        		$(this).attr('checked', false);
        	});
        	var str = '';
        	$.each(arrId, function(idx, val) {
        		if($.trim(arrId[idx]) != '')
        		{
        			str += (str != '') ? ',' + val : val;
        		}
        	});
        
        	$(hddId).val(str);
    }
}